import React from 'react';
import ReactDOM from 'react-dom';
import './index.scss';
import App from './App';
import {_post, _get} from './http/http.js'
import {Provider} from 'react-redux'
import store from './store'

//React挂载全局方法，等效Vue.prototype.$api = api
React.$post = _post
React.$get = _get

ReactDOM.render(
	// Provider包裹的组件共享store，全局注入store其他组件不再单独引用store
	<Provider store={store}>
		<App />
    </Provider>,
  document.getElementById('root')
);

